#! /bin/bash

#Script used to test  Grades.jar
echo "Test 1"
echo "Expected output : Component Fail"
correct = java -jar Grades.jar 20 38 


if["$correct" == "Component Fail"]
then
 echo correct output;

echo "Test 1"
echo "Expected output : Component Fail"
java -jar Grades.jar 45 38

echo "Test 2"
echo "Expected output : Component Fail"
java -jar Grades.jar 30 45


echo "Test 3"
echo "If combinet less than 50. Expected output : Fail"
java -jar Grades.jar 45 52

echo "Test 4"
echo "If  >=50 < 80. Expected output : Pass"
java -jar Grades.jar 55 65


echo "Test 5"
echo "If  >= 80  <100."
echo "Expected output : pass with distinction"
java -jar Grades.jar 85 90




